const state  = {
    name: "husanfeng"
}
const getters = {
    nameReverse: (state) => {
        return state.name.split('').reverse().join("");
    }
}
const mutations = {
    nameMutation: (state, paylaod) => {
        state.name = state.name + paylaod;
    }
}
const actions = {
    nameAction:({commit}, paylaod) => {
        setTimeout(()=> {
            commit('nameMutation', paylaod)
        },1000)
    }

}

export default {
    namespaced: true,
    state,
    getters,
    mutations,
    actions
}